<% form_for @category, :html => { :multipart => true } do |f| %>
<%= error_messages_for :category, :header_message => "Por favor intente de nuevo.", :message => "Encontramos un error en los siguientes campos:" %>


<table width="690" border="0" align="center">
  
  <tr valign="top">
    <td height="40" align="left" class="dato" background="/images/topHeader.gif" colspan="4">Nueva Categoria</td>
  </tr>
  <tr><td>&nbsp;</td></tr>
	
  <tr>
     <td colspan="4" align="center" background="/images/vg.jpg"><span class="subdatos">Datos de Categoria</span></td>
  </tr>
    <tr><td>&nbsp;</td></tr>
  
  <tr>
    <td width="109"><%= f.label :name, 'Nombre' %>:</td>
    <td width="182"><%= f.text_field :name, :size => 20 %></td>
    <td width="133">&nbsp;</td>
    <td width="181">&nbsp;</td>
  </tr>
    <tr>
    <td width="109"><%= f.label :description, 'Descripcion' %>:</td>
    <td width="182"><%= f.text_field :description, :size => 20 %></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td width="109"><%= f.label :photo, 'Imagen URL' %>:</td>
    <td width="182"><%= f.file_field :photo%></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  
  <tr><td>&nbsp;</td></tr>
  <tr><td colspan="4" align="center"><%= f.submit "Agregar Categoria" , :class => "submit" %></td></tr>
</table>


<% end %>
<%= link_to 'Regresar', categories_path %>